const express = require('express');
const router = express.Router();
const { login, sendEmail, register } = require('../model/index');
// 这个目录只写路由
router.post('/login', function (req, res, next) {
  login(req, res)
});
router.post('/sendEmail', function (req, res, next) {
  sendEmail(req, res)
});
router.post('/register', function (req, res, next) {
  register(req, res)
});
module.exports = router;
